package com.linq.cool.beauty.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linq.cool.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: yqlin
 * @Date: 2021/2/9 02:07
 * @Description: 商品统计信息
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "beauty_product_statistical")
public class BeautyProductStatistical extends BaseEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品编号
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 收藏数
     */
    @TableField(value = "collection_count")
    private Integer collectionCount;

    /**
     * 浏览数
     */
    @TableField(value = "history_count")
    private Integer historyCount;

    /**
     * 订单数
     */
    @TableField(value = "order_count")
    private Integer orderCount;

    /**
     * 评论数
     */
    @TableField(value = "comment_count")
    private Integer commentCount;
}